/**
 * 经营单位信息管理API
 */
const baseOperCompanyApi = new class BaseOperCompanyApi extends BaseApi {
    constructor() {
        super({
            url: '/api/baseOperCompany',
            exp: true,
            imp: true,
        })
    }

    async insertReport(id) {
        return (await rxajax.post(this.using(`/insert-report/${id}`), {}, {
            type: 'json',
        })).data
    }

    async updateReport(id) {
        return (await rxajax.post(this.using(`/update-report/${id}`), {}, {
            type: 'json',
        })).data
    }

    async existsById(id) {
        return (await rxajax.get(baseOperCompanyApi.using(`/exists-by-id/${id}`))).data.data
    }

}()